package com.funny.learning.english.activity;

import com.funny.learning.english.R;
import com.funny.learning.english.adapter.AppHotAdapter;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;

public class AppHotActivity extends Activity{
	private ListView lvCourse;
	private TextView tvTitle;
	private ImageView ivTitle;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.app_hot_layout);
		
		lvCourse = (ListView)findViewById(R.id.lvCourse);
		tvTitle = (TextView)findViewById(R.id.tvTitle);
		ivTitle = (ImageView)findViewById(R.id.ivTitle);
		
		tvTitle.setVisibility(View.VISIBLE);
		ivTitle.setVisibility(View.GONE);
		
//		lvCourse.setBackgroundColor(getResources().getColor(R.color.color_white));
		
		AppHotAdapter adapter = new AppHotAdapter(AppHotActivity.this);
		
		lvCourse.setAdapter(adapter);
	}
}
